package com.forward.uploadapp;

import android.content.Intent;
import android.view.View;

import com.forward.uploadapp.activity.AppInfoActivity;
import com.forward.uploadapp.activity.BmobActivity;
import com.forward.uploadapp.activity.GetJsonActivity;

public class MainActivity extends BaseActivity {

    /**
     * 跳转应用 res里使用的onclick属性
     *
     * @param view
     */
    public void startActivity(View view) {
        switch (view.getId()) {
            case R.id.get_json_data:
                startActivity(new Intent(this, GetJsonActivity.class));
                break;
            case R.id.get_application_info:
                startActivity(new Intent(this, AppInfoActivity.class));
                break;
            case R.id.bmob_data:
                startActivity(new Intent(this, BmobActivity.class));
                break;
        }
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {
    }

    @Override
    public void initData() {
    }

    @Override
    public void initListener() {
    }
}
